package edu.spec.rxz.week09.class2;

public class Cat extends Animal implements IPet {

        public Cat() {
        }

        public Cat(String name, List sounds, List foods) {
            super(name, sounds, foods);
        }

        @Override
        public void cry() {
            List l = super.getSounds();
            for (int i=0; i<l.size(); i++){
                String s = (String)l.get(i);
                System.out.println(getName() + "叫声是——" + s);
            }
        }

    }
